<?php
class Merchant_BalanceController extends Zend_Controller_Action
{

	public function preDispatch(){
		$this->tplDirectory = "merchant/balance/";
		 
		$this->customer = new Zend_Session_Namespace("customer");
	}
	/**
	* 用户注册处理程序
	*
	*/
	public function indexAction(){
	 
		//$balance = Merchant_Service_CustomerBalance::getByCustomer($this->customer);
		$balance = Merchant_Service_CustomerBalance::getByCustomer($this->customer->customer->customer_id);
		
		$this->view->balance =  $balance;
		echo Cff::renderTpl($this->tplDirectory."index.tpl","user-layout");
	}
	
	 
}